package com.woniuxy.service.impl;

import com.woniuxy.dao.MyStudentDao;
import com.woniuxy.entity.User;
import com.woniuxy.service.MyStudentService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional
@Data
@Service
public class MyStudentServiceImpl implements MyStudentService {

    @Autowired
    private MyStudentDao myStudentDao;

    /**
     * 根据场馆id查询该场馆有哪些学员
     * @param vid 场馆id
     * @return 学员列表
     */
    @Override
    public List<User> findMyStudentsByVenueId(int vid) {
        return myStudentDao.findMyStudentsByVenueId(vid);
    }
}
